//
//  PYImageViewController.h
//  PictureYourself
//
//  Created by Daniel on 16/7/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <ImageIO/ImageIO.h>

#import "CGGImage.h"
#import "PYFileManager.h"
#import "PYImageGalleryTableViewCell.h"
#import "PYImageSelection.h"

typedef void(^operation_on_cell)(PYImageGalleryTableViewCell*);

@protocol PYImageGalleryDelegate <NSObject>
@required
    -(void)userIsDoneViewingGallery;
@end

@interface PYImageGalleryViewController : UITableViewController <ThumbnailCellSelectionDelegate>
{
    // An ordered array of PYImageSelection*.
    NSMutableArray* selected_images_;
    BOOL editing_;
}

@property (nonatomic, retain) IBOutlet PYImageGalleryTableViewCell *tempCell;
@property (nonatomic, retain) id<PYImageGalleryDelegate> delegate;

@end